<?php /* Smarty version Smarty-3.1.13, created on 2013-05-26 15:02:43
         compiled from "G:\wamp\www\aircms\templates\templates\header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1569351a1b39344b2a3-91993015%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4abb9e94b93a2e5acfcef8d71159b286e26082e9' => 
    array (
      0 => 'G:\\wamp\\www\\aircms\\templates\\templates\\header.tpl',
      1 => 1369229863,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1569351a1b39344b2a3-91993015',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51a1b393451b92_86391962',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51a1b393451b92_86391962')) {function content_51a1b393451b92_86391962($_smarty_tpl) {?><!-- header-->
<div class="header">
	<h1 class="logo"><a href="javascript:;"></a></h1>
	<div class="txt"><a href="javascript:;" onclick="AddFavorite();return false;">加入收藏</a><span>|</span>
	<a href="member.php?c=login">登录</a>&nbsp;&nbsp;&nbsp;<a href="member.php?c=reg">注册</a></div>
	<div class="tel">400-800-8888</div>
</div>
<div class="navArea">
	<div class="navBg">
		<ul class="nav">
			<li><a href="index.php">首　页</a><ul class="nav_sub"></ul></li><li><a href="about.php">关于我们</a><ul class="nav_sub"></ul></li><li><a href="news.php">新闻中心</a><ul class="nav_sub"></ul></li><li><a href="product.php">产品展示</a><ul class="nav_sub"><li><a href="product.php?cid=6">笔记本电脑</a></li><li><a href="product.php?cid=7">智能手机</a></li></ul></li><li><a href="case.php">案例展示</a><ul class="nav_sub"></ul></li><li><a href="join.php">人才招聘</a><ul class="nav_sub"></ul></li><li><a href="message.php">客户留言</a><ul class="nav_sub"></ul></li><li><a href="contact.php">联系我们</a><ul class="nav_sub"></ul></li><li><a href="javascript:;">更多</a><ul class="nav_sub"><li><a href="soft.php">软件下载</a></li><li><a href="goods.php">商品展示</a></li></ul></li>		</ul>
	</div>
</div>
<script type="text/javascript">

$(function(){

	/*当前页面导航高亮*/
	var href = window.location.href.split('/')[window.location.href.split('/').length-1].substr(0,4);
	if(href.length > 0){
		$(function(){
			$("ul.nav a:first[href^='"+href+"']").attr("class","on");
			if($("ul.nav a:first[href^='"+href+"']").size() == 0){
				$("ul.nav a:first[href^='index']").attr("class","on");
			}
		});
	}else{
		$(function(){$("ul.nav a:first[href^='index']").attr("class","on")});
	}

	/*下拉菜单*/
	$(".nav li").hover(function(){
		$(this).parents(".nav > li").find("a:first").addClass("on2");
		$(this).find("ul:first").show(); //鼠标滑过查找li下面的第一个ul显示
	},function(){
		var navobj = $(this).find("ul:first");
		navobj.hide();

		//鼠标离开隐藏li下面的ul
		if(navobj.attr("class") == "nav_sub")
		{
			$(this).find("a:first").removeClass("on2");
		}
	})

	//给li下面ul是s的样式的前一个同辈元素添加css
	$(".nav li ul li ul").prev().addClass("t");
})


//加入收藏
function AddFavorite(){
	if(document.all){
		try{
			window.external.addFavorite(window.location.href,document.title);
		}catch(e){
			alert("加入收藏失败，请使用Ctrl+D进行添加！");
		}
	}else if(window.sidebar){
		window.sidebar.addPanel(document.title, window.location.href, "");
	}else{
		alert("加入收藏失败，请使用Ctrl+D进行添加！");
	}
}
</script><!-- /header--><?php }} ?>